import request from '@/utils/request'

// 查询物料标准明细列表
export function listItembzinfo(query) {
  return request({
    url: '/base/itembzinfo/list',
    method: 'get',
    params: query
  })
}

// 查询物料标准明细详细
export function getItembzinfo(id) {
  return request({
    url: '/base/itembzinfo/' + id,
    method: 'get'
  })
}

// 新增物料标准明细
export function addItembzinfo(data) {
  return request({
    url: '/base/itembzinfo',
    method: 'post',
    data: data
  })
}
export function addItemInfoGz(id) {
  return request({
    url: '/base/itembzinfo/addItemInfoGz/' + id,
    method: 'get'
  })
}
// 修改物料标准明细
export function updateItembzinfo(data) {
  return request({
    url: '/base/itembzinfo',
    method: 'put',
    data: data
  })
}

// 删除物料标准明细
export function delItembzinfo(id) {
  return request({
    url: '/base/itembzinfo/' + id,
    method: 'delete'
  })
}
// 全部删除物料标准明细
export function delAllItembzinfo() {
  return request({
    url: '/base/itembzinfo/delAllItembzinfo',
    method: 'delete'
  })
}

